import { BaseEntity } from '@cool-midway/core';
import { Column, Entity } from 'typeorm';

/**
 * 邮箱验证码
 */
@Entity('user_email')
export class UserEmailCodeEntity extends BaseEntity {
  @Column({ comment: '邮箱' })
  email: string;

  @Column({ comment: '验证码' })
  code: string;

  @Column({ comment: '类型 0-注册 1-修改密码', default: 0 })
  type: number;

  @Column({ comment: '状态 0-未使用 1-已使用', default: 0 })
  status: number;

  @Column({ comment: '过期时间' })
  expireTime: Date;
} 